package com.mxf.code.entity;

public class C extends F{
    private String name;

    public C(String name) {
        super(name);
        System.out.println("子类构造执行");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class F{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public F(String name) {
        this.name = name;
        System.out.println("父类构造执行");
    }
}